html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: "WenQuanYi Micro Hei", "Microsoft YaHei", Helvetica, Arial, sans-serif ;
    line-height: 1.5em;
    background-color: whitesmoke;
    margin: 0;
}

.left {
    float: left;
    padding-left: 20px;
}

.right {
    float: right;
    padding-right: 20px;
}

.emoji {
    width: 1em;
    height: 1em;
    vertical-align: baseline;
}

.task-list-item {
    list-style-type: none;
}

.task-list-item+.task-list-item {
    margin-top: 3px;
}

.task-list-item input {
    margin: 0 0.35em 0.25em -1.6em;
    vertical-align: middle;
}
.CodeMirror pre{
    line-height: 16px;
}

.CodeMirror {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    background: whitesmoke;
    padding-bottom: 50px;
}

.CodeMirror-scroll {
    padding: 30px;
}

#editor {
    position: fixed;
    top: 50px;
    left: 0;
    bottom: 0;
    width: 50%;
    height: auto;
    overflow: auto;
    font-size: 14px;
}

#preview{
    position: fixed;
    top: 50px;
    right: 0;
    left: 50%;
    bottom: 0;
    overflow: auto;
    padding: 10px;
    padding-left: 20px;
    color: #444;
    font-size: 16px;
    line-height: 1.5em;
    background: white;
    box-shadow: -2px 2px 6px 2px rgba(0,0,0,0.4);
}

#top-bar{
    height: 40px;
    padding-bottom: 5px;
    padding-top: 5px;
    background-color: #f5f5f5;
    box-shadow: 0 1px 1px rgba(0,0,0,.2);
    position: relative;
    z-index: 50;
}

button{
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    font-size: 13px;
    font-weight: bold;
    line-height: 20px;
    color: #333;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: #eee;
    background-image: -webkit-linear-gradient(#fcfcfc, #eee);
    background-image: linear-gradient(#fcfcfc, #eee);
    border: 1px solid #d5d5d5;
    border-radius: 3px;
}

#top-bar input{
    border: 0;
    min-height: 22px;
    font-size: 12px;
    padding: 3px 5px;
    line-height: 16px;
    width: 350px;
    color: #333;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #ccc;
    outline: none;
}

#top-bar span{
    font-size: 18px;
    vertical-align: middle;
    font-weight:bold;
}

#post_list a {
    vertical-align: middle;
}

a { color: #0645ad; text-decoration: none;}
a:visited { color: #0b0080; }
a:hover { color: #06e; text-decoration: underline; }
a:active { color: #faa700; }

p { margin: 0 0 1.5em 0; text-align: justify; }

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    color: #111;
    line-height: 1em;
}

h1 { font-size: 2.0em; }
h2 { font-size: 1.6em; border-bottom: 1px solid #ddd; padding-bottom: 5px; overflow:hidden }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.0em; }
h6 { font-size: 0.8em; }

blockquote {
    color: #666;
    margin: 0;
    padding-left: 3em;
    border-left: 0.4em #eee solid;
}

hr {
    border: 1px solid silver;
    margin: 1em 0;
    padding: 0;
}

b, strong { font-weight: bold; }

ul, ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
    line-height: 1.5em;
}

ul li { list-style-type: square; }

ul li p { margin: 0; }

img {
    border: 0;
    vertical-align: middle;
    margin: 0 auto;
    max-width: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1em;
}

td {
    vertical-align: top;
    padding: 3px 6px;
    border: 1px solid #ddd;
}

th {
    vertical-align: top;
    padding: 3px 6px;
    border: 1px solid #ddd;
}

/* Optimization for pre and code tag */
pre, code {
    font-family: Consolas, "DejaVu Sans Mono", "Lucida Console", Monaco, Andale Mono, "MS Gothic", monospace;
    font-size: 13px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    overflow: auto;
}

code {
    color: #666;
    background-color: #eee;
    margin: 0 2px;
    padding: 1px 3px;
}

pre {
    border: 1px solid #eee;
    padding: 8px 12px;
    white-space: pre;
    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -pre-wrap;     /* ancient Opera */
    white-space: -o-pre-wrap;   /* newer Opera */
    white-space: pre-wrap;      /* Chrome; W3C standard */
    word-wrap: break-word;      /* IE */
}

pre code {
    border: 0px !important;
    padding: 0;
    color: #000;
    background: white;
}

/* Custom Configuration */
#container {
    background: white;
    width: 50em;
    line-height: 1.5em;
    margin: 1.5em auto 3em auto;
    padding: 1.5em 2em;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px #aaa;
    -webkit-box-shadow: 2px 2px 8px #aaa;
    -moz-box-shadow: 2px 2px 8px #aaa;
}

#blog_title, #title {
    text-align: center;
    font-size: 2em;
    line-height: 1.5em;
    padding-bottom: 10px;
    margin: 20px 0;
}

#title {
    border-bottom: 1px dashed #eee;
}

#header {
}

#footer {
    margin: 10px auto;
    color: grey;
    font-size: 80%;
    text-align: center;
}

li.pagelist {
    width: 100%;
    margin-right: 1.5em;
    list-style-type: none;
    white-space: nowrap;
    overflow: hidden;
}

#index ul { margin: 0; }

/* Table of Contents */
.toc {
    margin: 0 0.5em;
    padding: 0.5em 1em;
    border: 1px solid silver;
    background-color: #ecf5ff;
    float: right;
    display: block;
    font-size: 90%;
}

.toc > .toctitle {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1em;
}

.toc ul {
    margin: 0;
}

/* Hackers */
/* Hacker for codehilite */
table.codehilitetable {
    border-collapse: separate;
    border: 1px solid #eee;
    margin: 14px 0;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.codehilitetable pre {
    margin: 0;
    border: 0 none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.codehilitetable td {
    border: 0 none;
    padding: 0;
    margin: 0;
}

/* Clear the float problem */
.clearfix:after {
    visibility: hidden;
    clear: both;
    font-size: 0;
    content: ".";
    display: block;
    height: 0;
}


table.hlcodetable {
    border: 1px solid #eee;
    border-collapse: separate !important;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.hlcodetable td {
    padding: 0;
    border: none;
}

.hlcodetable .linenodiv {
    border-right: 1px solid #ccc;
}

.hlcodetable .linenodiv pre {
    margin: 0;
    border: none;
}

.hlcodetable .hlcode pre {
    margin: 0;
    border: none;
}

.aligncenter {
    clear: both;
    display: block;
    margin:auto;
}
